<template>
  <div class="controller-player">
    <div class="player-progress">
      <el-slider v-model="value1"></el-slider>
    </div>
    <div class="controller-content">
      <div>
        <span></span>
        <span></span>
      </div>
      <div>
        <span></span>
        <span></span>
      </div>

    </div>
  </div>
</template>

<script>
export default {
  name: 'ControllerPlayer',
  data() {
    return {
      value1: 20,
      customColor: '#f56c6c',
    };
  },
};
</script>

<style  lang="scss">
.controller-player {
  width: 100%;
  height: 46px;
  background-color: rgba(0, 0, 0, 0.5);
  min-width: 700px;
  color: #ffffff;
  padding: 0 10px;
  box-sizing: border-box;
  .controller-content {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    justify-content: space-between;
    background-color: darkgreen;
  }
  .player-progress {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background-color: sandybrown;
  }
  .el-slider__runway {
    width: 100%;
    height: 2px;
    margin: 0;
    background-color: red;
    border-radius: 3px;
    position: absolute;
    cursor: pointer;
    vertical-align: middle;
    top: 0;
    z-index: 1;
  }
  .el-slider__button-wrapper {
    height: 20px;
    width: 20px;
    position: absolute;
    z-index: 1001;
    top: -10px;
  }
  .el-slider__bar {
    height: 2px;
    background-color: sandybrown;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    position: absolute;
  }
  .el-slider__button {
    width: 10px;
    height: 10px;
    border: solid 2px sandybrown;
  }
}
</style>
